package com.example.策略模式.duck;


import com.example.策略模式.behavior.FlyWithWings;
import com.example.策略模式.behavior.MuteQuack;

/**
 * 绿头野鸭类
 */
public class MallardDuck extends Duck{

    public MallardDuck() {
        this.flyBehavior = new FlyWithWings();
        this.quackBehavior = new MuteQuack();
    }
}
